package com.miniserver.util;

import org.apache.log4j.Priority;
import org.apache.log4j.RollingFileAppender;
/**
 * 控制log4j日志输出到不同的类别中 
 * @author zzlt104
 *
 */
public class MyRollingFileAppender extends RollingFileAppender {
	@Override
	public boolean isAsSevereAsThreshold(Priority priority) {
		// 只判断是否相等，而不判断优先级
		return this.getThreshold().equals(priority);
	}
}
